<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%-- <c:set var="ctx" value="${pageContext.request.contextPath}" /> --%>
<%-- <c:set var="ctxAssets" value="${pageContext.request.contextPath}/assets" /> --%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<c:set var="ctx" value="<%=basePath%>" />
<c:set var="ctxAssets" value="<%=basePath + \"/assets\"%>" />

<script type="text/javascript">
	var ctx = '${ctx}';
</script>

